package top.ffhome.blog.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import top.ffhome.blog.entity.Label;
import top.ffhome.common.mapper.BaseMapper;

public interface LabelMapper extends BaseMapper<Label> {
	Integer getMaxSortByParentId(@Param("parentId") Long parentId);

	int moveNextSiblingsSort(@Param("parentId") Long parentId, @Param("sort") Integer sort);

	List<Label> selectLabelsByCreateBy(@Param("createBy") Long createBy);
}
